package com.carl.mall.vo;


import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;


/**
 * 注册用户的VO对象
 */
@Data
public class UserLoginVO {

    @NotEmpty(message = "账号不能为空")
    @Length(min = 3,max = 15,message = "账号昵称必须是3~15位的")
    private String userName;



    @NotEmpty(message = "密码不能为空")
    @Length(min = 3,max = 15,message = "密码必须是3~15位")
    private String password; // 密码



}
